package com.hoshiicloud.common.constant;

public enum BaseSkuDistributorEnum {
    NO(0,"不允许分销"),
    YES(1,"允许分销")
            ;

    BaseSkuDistributorEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    private int code;

    private String name;

    public int getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }

    public static BaseSkuDistributorEnum get(int code) {
        for (BaseSkuDistributorEnum aparameterStatus : values()) {
            if (aparameterStatus.getCode() == code) {
                return aparameterStatus;
            }
        }
        return null;
    }
}
